<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__CSS__/layui.css">
    <link rel="stylesheet" href="__CSS__/view.css"/>
    <link rel="icon" href="/favicon.ico">
    <title>我的费率</title>
</head>
<body class="layui-view-body">
<div class="layui-content">
    <div class="layui-page-header">
        <div class="pagewrap">
                <span class="layui-breadcrumb">
                  <a href="">首页</a>
                  <a href="">个人资料</a>
                  <a><cite>我的费率</cite></a>
                </span>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-card">
            <table id="demo">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width:25%">等级</th>
                        <th>还款</th>
                        <th>收款</th>
                        <th>升级条件</th>
                        <th>特权</th>
                    </tr>
                    </thead>

                    <tbody>
                        {volist name="typeList" id="vo"}
                        <tr {if $member.user_type_id eq $vo.type_id} style="color:red;"{/if}>
                            <th>{$vo.type_name}{if $member.user_type_id eq $vo.type_id}（我的费率）{/if}</th>
                            <th>{$vo.hk_rate*100}%+2</th>
                            <th>
                                {$vo.sk_rate*100}%+2
                            </th>
                            <th>支付{$vo.type_fee}元</th>
                            <th>
                                {if $vo.type_is_member && $vo.type_member_num eq '-1'}
                                无限开通会员
                                {/if}
                                {if $vo.type_is_hhr}
                                开通{$vo.type_hhr_num}个合伙人
                                {/if}
                            </th>
                        </tr>
                        {/volist}
                    </tbody>

                </table>
            </table>
        </div>
    </div>
</div>
<script src="__JS__/layui.all.js"></script>
<script src="__JS__/jquery.min.js"></script>

<script>
    $('#formDemo').click(function () {
        var urls = "{:Url('Agent/User/info')}";
        var data = $('#doform').serialize();
        $.post(urls, data, function (e) {
            if (e.error == 0) {
                layer.msg(e.msg);
            }
        });
    });
</script>

</body>
</html>